package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口使用日志对象 e_api_log
 *
 * @author ruoyi
 * @date 2022-03-23
 */
public class EApiLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String apiName;

    /** 接口地址 */
    @Excel(name = "接口地址")
    private String apiUrl;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String request;

    /** 响应编号 */
    @Excel(name = "响应编号")
    private String responseCode;

    /** 响应信息 */
    @Excel(name = "响应信息")
    private String responseMsg;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setApiName(String apiName)
    {
        this.apiName = apiName;
    }

    public String getApiName()
    {
        return apiName;
    }
    public void setApiUrl(String apiUrl)
    {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl()
    {
        return apiUrl;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public void setResponseCode(String responseCode)
    {
        this.responseCode = responseCode;
    }

    public String getResponseCode()
    {
        return responseCode;
    }
    public void setResponseMsg(String responseMsg)
    {
        this.responseMsg = responseMsg;
    }

    public String getResponseMsg()
    {
        return responseMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("apiName", getApiName())
            .append("apiUrl", getApiUrl())
            .append("request", getRequest())
            .append("responseCode", getResponseCode())
            .append("responseMsg", getResponseMsg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
